package cn.kgc.mybatis.day05.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author 课工场
 * @date 2024/10/30
 * @description  实现序列化接口
 *   作用:
 *       序列化:  将对象写入缓存
 *       反序列化:  将缓存读取成java对象
 *
 *       序列化号   默认生成  serialVersionUID = 2432884238115708362L  2432884238115708363L
 */
@Data
public class Emp implements Serializable {

    private static final long serialVersionUID = 2432884238115708362L;

    private Integer id;
    private String empName;
    private Integer age;
    private Integer deptNumber;

}
